#ifndef __MASSEGE_M_H__
#define __MASSEGE_M_H__



void reset_time_out();
void set_time_out();
void time_out_eclipse();
int is_time_out();

int packeage_heart(char cmd, char*sdbuf);
int packeage_bus_info(char cmd, char*sdbuf, char*inbuf, int inlen);
int send_heart(int nsockfd);
int receive_heart();
int receive_pic(char *buffer);
int send_bus_line_info(int nsockfd);
int parase_cmd(char *revbuf, int len);
int send_ask_pic(int nsockfd);

#endif // __MASSEGE_M_H__

